﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace MsForgeReboot.Web.Controllers
{
	using System.Web.Mvc;

	public partial class AccountController
	{
		[AllowAnonymous]
		public ActionResult Search(string term) {
			return Json(this.userService.SearchTopTenUsers(term).Select(u => new { id = u.Id, text = u.PublicName }), JsonRequestBehavior.AllowGet);
		}
	}
}